﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common.Core.Cache;

namespace Common.Facade
{
    /// <summary>
    /// session的一个封装，Application不推荐封装
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class WebSessions<T> : CurrentSessions<T>
    {
        public void Initialization(T t)
        {
            Current = this;
            System.Web.HttpContext.Current.Session[typeof(T).FullName] = t;
            Current.CurrentObj = (T)System.Web.HttpContext.Current.Session[typeof(T).FullName];
        }

    }
}
